package com.example;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * 虚拟机账号: root
 * 虚拟机密码: itcast
 */
@SpringBootApplication
@MapperScan("com.example.mapper")
@ComponentScan(basePackages = {"com.example", "com.gearwenxin"})
@EnableAspectJAutoProxy // 开启对AOP注解的支持
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}
